package wxy.studentmanage.handler;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import wxy.studentmanage.bean.Users;
import wxy.studentmanage.service.UserService;

import javax.servlet.http.HttpSession;
import java.util.List;

@Controller


public class loginControlle {

    @RequestMapping("/main")
    public String main(){
        return "main";
    }
    @RequestMapping("/login")
    public String login(HttpSession session, @RequestParam String wxy_username, @RequestParam String wxy_password, Model model){
        session.setAttribute("user",wxy_username);
        return "main";
    }






}
